package com.dtx.factory.myself.myidcard;

import com.dtx.factory.gongyoude.framework.Product;

public class MyIDCard extends Product {

    private String owner;

    private Integer number;

    MyIDCard(String owner,Integer number){
        System.out.println("制作" + owner + "("+number+")"+"的ID卡。");
        this.owner = owner;
       this.number = number;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "("+number+")"+ "的ID卡。");
    }

    public String getOwner(){
        return owner;
    }

    public Integer getNumber() {
        return number;
    }
}
